package com.lixueju.security.box.validate.code.image;

import com.lixueju.security.box.validate.code.ValidateCode;
import lombok.Data;

import java.awt.image.BufferedImage;
import java.time.LocalDateTime;

/**
 * <p>
 * 图形验证码对象
 * </p>
 *
 * @author lixueju
 * @since 2019-08-16
 */
@Data
public class ImageValidateCode extends ValidateCode {

    // 图片
    private BufferedImage image;

    public ImageValidateCode(BufferedImage image, String code, int expireIn) {
        super(code,expireIn);
        this.image = image;
    }

    public ImageValidateCode(BufferedImage image, String code, LocalDateTime expireTime) {
        super(code,expireTime);
        this.image = image;
    }
}
